// get请求
const baseurl = "https://wx.jinwenlei.cn/app/index.php?i=4&c=entry&do=lit_jksc&m=baolan&little=1"

var sendRrquest = function (url, method, data,header) {
    var promise = new Promise(function (resolve, reject) {
        wx.request({
            url: baseurl + "&op=" + url, 
            data: data,
            method: method,
            header: {
              "Content-Type": header
            },
            success: resolve,
            fail: reject
        })
    });
    return promise;
};

module.exports.sendRrquest = sendRrquest ;